package com.cmii.sjw.department.control.jsc.exception;

/**
 * 业务异常
 */
public class BaseException extends RuntimeException {

    private final String errorCode;

    public BaseException(String errorCode) {
        this.errorCode = errorCode;
    }

    public BaseException(String msg, String errorCode) {
        super(msg);
        this.errorCode = errorCode;
    }

    public BaseException(String msg, String errorCode, Throwable cause) {
        super(msg, cause);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
